.class public Lcom/brixd/niceapp/activity/SearchMoreActivity;
.super Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;
.source "SearchMoreActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/activity/SearchMoreActivity$AppsAdapter;
    }
.end annotation


# static fields
.field public static final SEARCH_APP_MODELS:Ljava/lang/String; = "search_app_models"


# instance fields
.field private appModels:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/model/AppModel;",
            ">;"
        }
    .end annotation
.end field

.field private mAdapter:Lcom/brixd/niceapp/activity/SearchMoreActivity$AppsAdapter;

.field private mCurrentBgColor:I

.field private mListView:Landroid/widget/ListView;

.field onBackClick:Landroid/view/View$OnClickListener;


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 30
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;-><init>()V

    .line 36
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->appModels:Ljava/util/ArrayList;

    .line 83
    new-instance v0, Lcom/brixd/niceapp/activity/SearchMoreActivity$1;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/activity/SearchMoreActivity$1;-><init>(Lcom/brixd/niceapp/activity/SearchMoreActivity;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->onBackClick:Landroid/view/View$OnClickListener;

    .line 105
    return-void
.end method

.method private initData()V
    .registers 6

    .prologue
    .line 52
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->getActivity()Landroid/app/Activity;

    move-result-object v1

    invoke-static {v1}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v1

    const-string v2, "CurrentBgColor"

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f08002a

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getColor(I)I

    move-result v3

    invoke-virtual {v1, v2, v3}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;I)I

    move-result v1

    iput v1, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->mCurrentBgColor:I

    .line 53
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, "search_app_models"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    .line 54
    .local v0, "appModelList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;"
    if-eqz v0, :cond_2b

    .line 55
    iput-object v0, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->appModels:Ljava/util/ArrayList;

    .line 57
    :cond_2b
    return-void
.end method

.method private initWidgets()V
    .registers 4

    .prologue
    .line 60
    const v0, 0x7f03001a

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->setContentView(I)V

    .line 62
    const v0, 0x7f0c0037

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->setBackText(I)V

    .line 63
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f08007f

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getColor(I)I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->setBackTextColor(I)V

    .line 64
    const v0, 0x7f0200ae

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->setBackArrowBackground(I)V

    .line 65
    iget-object v0, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->onBackClick:Landroid/view/View$OnClickListener;

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->setOnBackClickListener(Landroid/view/View$OnClickListener;)V

    .line 66
    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->setCommitBtnVisibility(I)V

    .line 67
    iget v0, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->mCurrentBgColor:I

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->setActionBarBgColor(I)V

    .line 69
    const v0, 0x7f0a002b

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->mListView:Landroid/widget/ListView;

    .line 70
    iget-object v0, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->mListView:Landroid/widget/ListView;

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f020088

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 71
    iget-object v0, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->mListView:Landroid/widget/ListView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setDividerHeight(I)V

    .line 72
    invoke-static {}, Lcom/zuiapps/suite/utils/device/DeviceUtil;->isMeizu()Z

    move-result v0

    if-nez v0, :cond_5c

    .line 73
    iget-object v0, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->mListView:Landroid/widget/ListView;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOverScrollMode(I)V

    .line 76
    :cond_5c
    new-instance v0, Lcom/brixd/niceapp/activity/SearchMoreActivity$AppsAdapter;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->appModels:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/brixd/niceapp/activity/SearchMoreActivity$AppsAdapter;-><init>(Lcom/brixd/niceapp/activity/SearchMoreActivity;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->mAdapter:Lcom/brixd/niceapp/activity/SearchMoreActivity$AppsAdapter;

    .line 77
    iget-object v0, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->mListView:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/SearchMoreActivity;->mAdapter:Lcom/brixd/niceapp/activity/SearchMoreActivity$AppsAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 78
    return-void
.end method

.method private initWidgetsActions()V
    .registers 1

    .prologue
    .line 81
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .registers 2
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 43
    invoke-super {p0, p1}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onCreate(Landroid/os/Bundle;)V

    .line 45
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->initData()V

    .line 46
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->initWidgets()V

    .line 47
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/SearchMoreActivity;->initWidgetsActions()V

    .line 48
    return-void
.end method

.method protected onPause()V
    .registers 2

    .prologue
    .line 100
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onPause()V

    .line 101
    const-string v0, "SearchMoreActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageEnd(Ljava/lang/String;)V

    .line 102
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onPause(Landroid/content/Context;)V

    .line 103
    return-void
.end method

.method protected onResume()V
    .registers 2

    .prologue
    .line 93
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onResume()V

    .line 94
    const-string v0, "SearchMoreActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageStart(Ljava/lang/String;)V

    .line 95
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onResume(Landroid/content/Context;)V

    .line 96
    return-void
.end method
